package com.yunfei.yunhetong.heTongSignManager.bo;
import com.yunfei.yunhetong.heTongSignManager.entity.*;
import com.yunfei.utils.string.StringUtil;
/**
*@tablename HETONG_SIGN_MANAGER
*@author zhengyunfei
*@createDate Thu Aug 08 09:31:33 CST 2019
*/ 
public class HeTongSignManagerBo implements java.io.Serializable{
	private String contractId;
	private String contractNum;
	private String createDate;
	private String endDate;
	private String contractStsCode;
	private String contractSts;
	private String cCustname;
	private String cBrokername;
	private String cFundname;
	private String fBalance;
	private String bankName;
	private String nameinbank;
	private String acctNo;
	private String cReserveno;
	private String field;
	private String order;

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	public String getContractSts() {
		return contractSts;
	}

	public void setContractSts(String contractSts) {
		this.contractSts = contractSts;
	}

	public String getcCustname() {
		return cCustname;
	}

	public void setcCustname(String cCustname) {
		this.cCustname = cCustname;
	}

	public String getcBrokername() {
		return cBrokername;
	}

	public void setcBrokername(String cBrokername) {
		this.cBrokername = cBrokername;
	}

	public String getcFundname() {
		return cFundname;
	}

	public void setcFundname(String cFundname) {
		this.cFundname = cFundname;
	}

	public String getfBalance() {
		return fBalance;
	}

	public void setfBalance(String fBalance) {
		this.fBalance = fBalance;
	}

	public String getcReserveno() {
		return cReserveno;
	}

	public void setcReserveno(String cReserveno) {
		this.cReserveno = cReserveno;
	}

	/**
		* 更改排序字段
		* @return
		*/
   public String getField() {
		   return field;
   }
   public void setField(String field) {
		   this.field = field;
   }
   public String getOrder() {
		   return order;
   }
   public void setOrder(String order) {
		   this.order = order;
   }
	private int curNo;
	public int getCurNo() {
		return curNo;
	}	
	public void setCurNo(int curNo) {
		this.curNo = curNo;
	}
	private int curSize;
	public int getCurSize() {
		return curSize;
	}
	public void setCurSize(int curSize) {
		this.curSize = curSize;
	}
	public void setContractId(String contractId){
		this.contractId=contractId;
	}
	public String getContractId(){
		return contractId;
	}
	public void setContractNum(String contractNum){
		this.contractNum=contractNum;
	}
	public String getContractNum(){
		return contractNum;
	}
	public void setCreateDate(String createDate){
		this.createDate=createDate;
	}
	public String getCreateDate(){
		return createDate;
	}
	public void setContractStsCode(String contractStsCode){
		this.contractStsCode=contractStsCode;
	}
	public String getContractStsCode(){
		return contractStsCode;
	}
	public void setCCustname(String cCustname){
		this.cCustname=cCustname;
	}
	public String getCCustname(){
		return cCustname;
	}
	public void setCBrokername(String cBrokername){
		this.cBrokername=cBrokername;
	}
	public String getCBrokername(){
		return cBrokername;
	}
	public void setCFundname(String cFundname){
		this.cFundname=cFundname;
	}
	public String getCFundname(){
		return cFundname;
	}
	public void setFBalance(String fBalance){
		this.fBalance=fBalance;
	}
	public String getFBalance(){
		return fBalance;
	}
	public void setBankName(String bankName){
		this.bankName=bankName;
	}
	public String getBankName(){
		return bankName;
	}
	public void setNameinbank(String nameinbank){
		this.nameinbank=nameinbank;
	}
	public String getNameinbank(){
		return nameinbank;
	}
	public void setAcctNo(String acctNo){
		this.acctNo=acctNo;
	}
	public String getAcctNo(){
		return acctNo;
	}
	public void setCReserveno(String cReserveno){
		this.cReserveno=cReserveno;
	}
	public String getCReserveno(){
		return cReserveno;
	}
	public static HeTongSignManagerEntity boToEntity(HeTongSignManagerBo bo){
		HeTongSignManagerEntity entity=new HeTongSignManagerEntity();
		entity.setContractId(bo.getContractId());
		entity.setContractNum(bo.getContractNum());
		entity.setCreateDate(bo.getCreateDate());
		entity.setEndDate(bo.getEndDate());
		entity.setContractStsCode(bo.getContractStsCode());
		entity.setCCustname(bo.getCCustname());
		entity.setCBrokername(bo.getCBrokername());
		entity.setCFundname(bo.getCFundname());
		entity.setFBalance(bo.getFBalance());
		entity.setBankName(bo.getBankName());
		entity.setNameinbank(bo.getNameinbank());
		entity.setAcctNo(bo.getAcctNo());
		entity.setCReserveno(bo.getCReserveno());
		entity.setContractSts(bo.getContractSts());
		return entity;
	}
	public static HeTongSignManagerBo entityToBo(HeTongSignManagerEntity bo){
		HeTongSignManagerBo entity=new HeTongSignManagerBo();
		entity.setContractId(bo.getContractId());
		entity.setContractNum(bo.getContractNum());
		entity.setCreateDate(bo.getCreateDate());
		entity.setEndDate(bo.getEndDate());
		entity.setContractStsCode(bo.getContractStsCode());
		entity.setCCustname(bo.getCCustname());
		entity.setCBrokername(bo.getCBrokername());
		entity.setCFundname(bo.getCFundname());
		entity.setFBalance(bo.getFBalance());
		entity.setBankName(bo.getBankName());
		entity.setNameinbank(bo.getNameinbank());
		entity.setAcctNo(bo.getAcctNo());
		entity.setCReserveno(bo.getCReserveno());
		entity.setContractSts(bo.getContractSts());
		return entity;
	}
	public static String changeFieldColumn(String field){
		String result="";
			if(!StringUtil.isNullOrEmpty(field)){
				if(field.equals("contractId")){
					result="CONTRACT_ID";
				}
				if(field.equals("contractNum")){
					result="CONTRACT_NUM";
				}
				if(field.equals("createDate")){
					result="CREATE_DATE";
				}
				if(field.equals("contractStsCode")){
					result="CONTRACT_STS_CODE";
				}
				if(field.equals("contractSts")){
					result="CONTRACT_STS";
				}
				if(field.equals("cCustname")){
					result="C_CUSTNAME";
				}
				if(field.equals("cBrokername")){
					result="C_BROKERNAME";
				}
				if(field.equals("cFundname")){
					result="C_FUNDNAME";
				}
				if(field.equals("fBalance")){
					result="F_BALANCE";
				}
				if(field.equals("bankName")){
					result="BANK_NAME";
				}
				if(field.equals("nameinbank")){
					result="NAMEINBANK";
				}
				if(field.equals("acctNo")){
					result="ACCT_NO";
				}
				if(field.equals("cReserveno")){
					result="C_RESERVENO";
				}
		}
		return result;
	}
}

